<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>安装emby、rclone和aria2 | 秋澪冬安</title>
    <meta name="generator" content="VuePress 1.9.7">
    <link rel="icon" href="/assets/img/favicon.ico">
    <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
    <script>
            var _hmt = _hmt || [];
            (function () {
                let isLocal = window.location.hostname.includes("localhost");
                if(!isLocal){
                    var hm = document.createElement("script");
                    hm.src = "https://hm.baidu.com/hm.js?2b691637b166e447d963eab55f62c51f";
                    var s = document.getElementsByTagName("script")[0];
                    s.parentNode.insertBefore(hm, s);
                }
            })();
            </script>
    <meta name="description" content="一个分享技术、生活，整理笔记的个人博客">
    
    <link rel="preload" href="/assets/css/0.styles.c5fe4079.css" as="style"><link rel="preload" href="/assets/js/app.f1feaaa3.js" as="script"><link rel="preload" href="/assets/js/2.56bc1612.js" as="script"><link rel="preload" href="/assets/js/18.e4a559a0.js" as="script"><link rel="prefetch" href="/assets/js/10.1e88977a.js"><link rel="prefetch" href="/assets/js/11.3149965c.js"><link rel="prefetch" href="/assets/js/12.a751fc6a.js"><link rel="prefetch" href="/assets/js/13.46a65100.js"><link rel="prefetch" href="/assets/js/14.60692bb2.js"><link rel="prefetch" href="/assets/js/15.74268a75.js"><link rel="prefetch" href="/assets/js/16.8a56e86b.js"><link rel="prefetch" href="/assets/js/17.cd4f0314.js"><link rel="prefetch" href="/assets/js/19.2812e5f8.js"><link rel="prefetch" href="/assets/js/20.2a8bf95e.js"><link rel="prefetch" href="/assets/js/21.f0e889f9.js"><link rel="prefetch" href="/assets/js/22.be080c8c.js"><link rel="prefetch" href="/assets/js/23.f568ebff.js"><link rel="prefetch" href="/assets/js/24.c8946e24.js"><link rel="prefetch" href="/assets/js/25.13080108.js"><link rel="prefetch" href="/assets/js/26.4b7b31f3.js"><link rel="prefetch" href="/assets/js/27.d7d7f81f.js"><link rel="prefetch" href="/assets/js/28.faeb5048.js"><link rel="prefetch" href="/assets/js/29.1d40cd69.js"><link rel="prefetch" href="/assets/js/3.113aa5f9.js"><link rel="prefetch" href="/assets/js/30.f2d5999d.js"><link rel="prefetch" href="/assets/js/31.3919f392.js"><link rel="prefetch" href="/assets/js/32.d0cb9d84.js"><link rel="prefetch" href="/assets/js/33.67c73b82.js"><link rel="prefetch" href="/assets/js/34.7c153175.js"><link rel="prefetch" href="/assets/js/35.fb1bdca9.js"><link rel="prefetch" href="/assets/js/36.6b4bc7a1.js"><link rel="prefetch" href="/assets/js/4.a7fbcc6d.js"><link rel="prefetch" href="/assets/js/5.cbcdf0da.js"><link rel="prefetch" href="/assets/js/6.eedbdea5.js"><link rel="prefetch" href="/assets/js/7.7ac30410.js"><link rel="prefetch" href="/assets/js/8.444ebd43.js"><link rel="prefetch" href="/assets/js/9.ecf5a0cc.js">
    <link rel="stylesheet" href="/assets/css/0.styles.c5fe4079.css">
  </head>
  <body class="theme-mode-light">
    <div id="app" data-server-rendered="true"><div class="theme-container sidebar-open have-rightmenu"><header class="navbar blur"><div title="目录" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/assets/img/logo.png" alt="秋澪冬安" class="logo"> <span class="site-name can-hide">秋澪冬安</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">主页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="收藏" class="dropdown-title"><a href="/pages/87b1e9/" class="link-title">收藏</a> <span class="title" style="display:none;">收藏</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/87b1e9/" class="nav-link">网站</a></li><li class="dropdown-item"><!----> <a href="/pages/c47f0e/" class="nav-link">资源</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="索引" class="dropdown-title"><a href="/archives/" class="link-title">索引</a> <span class="title" style="display:none;">索引</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/" class="nav-link">分类</a></li><li class="dropdown-item"><!----> <a href="/tags/" class="nav-link">标签</a></li><li class="dropdown-item"><!----> <a href="/archives/" class="nav-link">归档</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="个人建站" class="dropdown-title"><!----> <span class="title" style="display:;">个人建站</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://billsaul.gitee.io/genshinrecord" target="_blank" rel="noopener noreferrer" class="nav-link external">
  原神祈愿记录
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><a href="/about/" class="nav-link">关于</a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar-hover-trigger"></div> <aside class="sidebar" style="display:none;"><div class="blogger"><img src="/assets/img/head portrait.webp"> <div class="blogger-info"><h3>秋澪冬安</h3> <span></span></div></div> <nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">主页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="收藏" class="dropdown-title"><a href="/pages/87b1e9/" class="link-title">收藏</a> <span class="title" style="display:none;">收藏</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/87b1e9/" class="nav-link">网站</a></li><li class="dropdown-item"><!----> <a href="/pages/c47f0e/" class="nav-link">资源</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="索引" class="dropdown-title"><a href="/archives/" class="link-title">索引</a> <span class="title" style="display:none;">索引</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/" class="nav-link">分类</a></li><li class="dropdown-item"><!----> <a href="/tags/" class="nav-link">标签</a></li><li class="dropdown-item"><!----> <a href="/archives/" class="nav-link">归档</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="个人建站" class="dropdown-title"><!----> <span class="title" style="display:;">个人建站</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://billsaul.gitee.io/genshinrecord" target="_blank" rel="noopener noreferrer" class="nav-link external">
  原神祈愿记录
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><a href="/about/" class="nav-link">关于</a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>瞎折腾</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>前端</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>树莓派4B</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/pages/08260b/" class="sidebar-link">从零开始的树莓派4B</a></li><li><a href="/pages/1a0fa9/" aria-current="page" class="active sidebar-link">安装emby、rclone和aria2</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header level2"><a href="/pages/1a0fa9/#_1-前言" class="sidebar-link">1.前言</a></li><li class="sidebar-sub-header level2"><a href="/pages/1a0fa9/#_2-安装rclone" class="sidebar-link">2.安装Rclone</a></li><li class="sidebar-sub-header level2"><a href="/pages/1a0fa9/#_3-安装emby" class="sidebar-link">3.安装emby</a></li><li class="sidebar-sub-header level2"><a href="/pages/1a0fa9/#_4-安装aria2" class="sidebar-link">4.安装Aria2</a></li></ul></li><li><a href="/pages/b22e3a/" class="sidebar-link">配置树莓派连接WiFi网络</a></li><li><a href="/pages/c29696/" class="sidebar-link">在Docker中开启sftp服务</a></li><li><a href="/pages/f69060/" class="sidebar-link">根据CPU温度控制风扇</a></li></ul></section></li><li><a href="/pages/1922ab/" class="sidebar-link">genshin-record项目文档</a></li><li><a href="/pages/4568fc/" class="sidebar-link">Windows配置Java环境变量</a></li><li><a href="/pages/c242c9/" class="sidebar-link">✨✨博客站点迁移提示✨✨</a></li></ul> </aside> <div><main class="page"><div class="theme-vdoing-wrapper "><div class="articleInfo-wrap" data-v-1baff76c><div class="articleInfo" data-v-1baff76c><ul class="breadcrumbs" data-v-1baff76c><li data-v-1baff76c><a href="/" title="首页" class="iconfont icon-home router-link-active" data-v-1baff76c></a></li> <li data-v-1baff76c><a href="/categories/?category=%E5%8D%9A%E5%AE%A2" title="分类" data-v-1baff76c>博客</a></li><li data-v-1baff76c><a href="/categories/?category=%E6%A0%91%E8%8E%93%E6%B4%BE4B" title="分类" data-v-1baff76c>树莓派4B</a></li></ul> <div class="info" data-v-1baff76c><!----> <div title="创建时间" class="date iconfont icon-riqi" data-v-1baff76c><a href="javascript:;" data-v-1baff76c>2021-08-27</a></div> <!----></div></div></div> <!----> <div class="content-wrapper"><div class="right-menu-wrapper"><div class="right-menu-margin"><div class="right-menu-title">目录</div> <div class="right-menu-content"></div></div></div> <h1><img src="">安装emby、rclone和aria2<!----></h1> <!----> <div class="theme-vdoing-content content__default"><div class="custom-block danger"><p class="custom-block-title">迁站提醒</p> <p>本博客已迁移至新域名<a href="https://www.meowpass.com" target="_blank" rel="noopener noreferrer">www.meowpass.com<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，本域名下的博客不再更新，但不会删除，欢迎访问新域名🎉🎉</p></div> <h2 id="_1-前言"><a href="#_1-前言" class="header-anchor">#</a> 1.前言</h2> <p>这篇文章将会在树莓派的Docker中安装emby、aria2，在树莓派上安装rclone并挂载Google Drive</p> <div class="custom-block danger"><p class="custom-block-title">警告</p> <p>本文的所有操作都是基于开启代理后的！如果某些网站无法连接，内容无法下载等，请开启代理！</p></div> <h2 id="_2-安装rclone"><a href="#_2-安装rclone" class="header-anchor">#</a> 2.安装Rclone</h2> <p><strong>记得开代理，不然连不上Google Drive</strong></p> <div class="language- extra-class"><pre class="language-text"><code>export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
</code></pre></div><p>安装</p> <div class="language- extra-class"><pre class="language-text"><code>sudo apt install rclone
</code></pre></div><h3 id="_2-1-配置rclone"><a href="#_2-1-配置rclone" class="header-anchor">#</a> 2.1 配置rclone</h3> <p>输入<code>rclone config</code>配置rclone</p> <div class="language- extra-class"><pre class="language-text"><code>No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q&gt; n
name&gt;
</code></pre></div><p>输入<code>n</code>，然后输入名字(随便取)</p> <div class="language- extra-class"><pre class="language-text"><code>Type of storage to configure.
Enter a string value. Press Enter for the default (&quot;&quot;).
Choose a number from below, or type in your own value
 1 / 1Fichier
   \ &quot;fichier&quot;
 2 / Alias for an existing remote
   \ &quot;alias&quot;
 3 / Amazon Drive
   \ &quot;amazon cloud drive&quot;
 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
   \ &quot;s3&quot;
 5 / Backblaze B2
   \ &quot;b2&quot;
 6 / Box
   \ &quot;box&quot;
 7 / Cache a remote
   \ &quot;cache&quot;
 8 / Citrix Sharefile
   \ &quot;sharefile&quot;
 9 / Dropbox
   \ &quot;dropbox&quot;
10 / Encrypt/Decrypt a remote
   \ &quot;crypt&quot;
11 / FTP Connection
   \ &quot;ftp&quot;
12 / Google Cloud Storage (this is not Google Drive)
   \ &quot;google cloud storage&quot;
13 / Google Drive
   \ &quot;drive&quot;
14 / Google Photos
   \ &quot;google photos&quot;
15 / Hubic
   \ &quot;hubic&quot;
16 / JottaCloud
   \ &quot;jottacloud&quot;
17 / Koofr
   \ &quot;koofr&quot;
18 / Local Disk
   \ &quot;local&quot;
19 / Mail.ru Cloud
   \ &quot;mailru&quot;
20 / Microsoft Azure Blob Storage
   \ &quot;azureblob&quot;
21 / Microsoft OneDrive
   \ &quot;onedrive&quot;
22 / OpenDrive
   \ &quot;opendrive&quot;
23 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ &quot;swift&quot;
24 / Pcloud
   \ &quot;pcloud&quot;
25 / Put.io
   \ &quot;putio&quot;
26 / SSH/SFTP Connection
   \ &quot;sftp&quot;
27 / Transparently chunk/split large files
   \ &quot;chunker&quot;
28 / Union merges the contents of several remotes
   \ &quot;union&quot;
29 / Webdav
   \ &quot;webdav&quot;
30 / Yandex Disk
   \ &quot;yandex&quot;
31 / http Connection
   \ &quot;http&quot;
32 / premiumize.me
   \ &quot;premiumizeme&quot;
Storage&gt;
</code></pre></div><p>输入<code>13</code>选择Google Drive，后面的<code>client_id</code>和<code>client_secret</code>不用管直接回车</p> <div class="language- extra-class"><pre class="language-text"><code>Scope that rclone should use when requesting access from drive.
Enter a string value. Press Enter for the default (&quot;&quot;).
Choose a number from below, or type in your own value
 1 / Full access all files, excluding Application Data Folder.
   \ &quot;drive&quot;
 2 / Read-only access to file metadata and file contents.
   \ &quot;drive.readonly&quot;
   / Access to files created by rclone only.
 3 | These are visible in the drive website.
   | File authorization is revoked when the user deauthorizes the app.
   \ &quot;drive.file&quot;
   / Allows read and write access to the Application Data folder.
 4 | This is not visible in the drive website.
   \ &quot;drive.appfolder&quot;
   / Allows read-only access to file metadata but
 5 | does not allow any access to read or download file content.
   \ &quot;drive.metadata.readonly&quot;
scope&gt;
</code></pre></div><p>这里选择<code>1</code>，后面的<code>root_folder_id</code>和<code>service_account_file</code>不用管直接回车</p> <div class="language- extra-class"><pre class="language-text"><code>Edit advanced config? (y/n)
y) Yes
n) No
y/n&gt; n
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n&gt; n
</code></pre></div><p>这里两项都选<code>n</code></p> <div class="language- extra-class"><pre class="language-text"><code>If your browser doesn't open automatically go to the following link: https://accounts.google.com/o/fhgsdhifghisdhfjciownvheufbsoasdhfhosjcbf/sdufisdbcbaoqiowhsaopsidnaisgdbaiusdbaush+jdshis=asjhdsialosib
Log in and authorize rclone for access
Enter verification code&gt;
</code></pre></div><p>浏览器打开上面的网址，获得授权的代码</p> <div class="language- extra-class"><pre class="language-text"><code>Configure this as a team drive?
y) Yes
n) No
y/n&gt;
</code></pre></div><p>这里如果你要使用团队盘，就选yes，不是的话，就选n</p> <div class="language- extra-class"><pre class="language-text"><code>y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d&gt;
</code></pre></div><p>输入<code>y</code></p> <div class="language- extra-class"><pre class="language-text"><code>e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q&gt;
</code></pre></div><p>最后输入<code>q</code>完成配置</p> <h3 id="_2-2-挂载到本地"><a href="#_2-2-挂载到本地" class="header-anchor">#</a> 2.2 挂载到本地</h3> <p>将刚才的GoogleDrive挂载到本地目录上</p> <div class="language- extra-class"><pre class="language-text"><code>rclone mount DriveName:Folder LocalFolder --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000
</code></pre></div><p><code>DriveName</code>为初始化配置填的<code>name</code>，<code>Folder</code>为<code>GoogleDrive</code>里的文件夹，<code>LocalFolder</code>为本地文件夹。</p> <p>设置开机自启，自动挂载。创建文件<code>/etc/systemd/system/rclone.service</code>，写入如下内容</p> <div class="language- extra-class"><pre class="language-text"><code>[Unit]
Description=Rclone Mount GoogleDrive
After=clash.service

[Service]
Type=simple
User=ubuntu
Environment=&quot;https_proxy=http://127.0.0.1:7890&quot;
Environment=&quot;http_proxy=http://127.0.0.1:7890&quot;
ExecStart=rclone mount gdrive:emby /home/emby/gdrive --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000
Restart=on-abort

[Install]
WantedBy=multi-user.target
</code></pre></div><details><summary>参数解释，点击展开</summary> <ul><li><code>Description</code>：当前服务的简单描述</li> <li><code>After</code>：在clash.service启动后再启动</li> <li><code>Type</code>：字段定义启动类型，simple表示ExecStart字段启动的进程为主进程</li> <li><code>User</code>：启动用户</li> <li><code>Environment</code>：环境参数</li> <li><code>ExecStart</code>：定义启动进程时执行的命令</li> <li><code>Restart</code>：on-abort表示只有在收到没有捕捉到的信号终止时，才会重启</li> <li><code>WantedBy</code>：表示该服务所在的 Target</li></ul> <blockquote><p>更多参数详解可访问<a href="https://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html" target="_blank" rel="noopener noreferrer">阮一峰的网络日志<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></blockquote></details> <p>刷新配置</p> <div class="language- extra-class"><pre class="language-text"><code>sudo systemctl daemon-reload
</code></pre></div><p>设置开机自启</p> <div class="language- extra-class"><pre class="language-text"><code>sudo systemctl enable rclone
</code></pre></div><p>下次开机就能自动挂载了</p> <h2 id="_3-安装emby"><a href="#_3-安装emby" class="header-anchor">#</a> 3.安装emby</h2> <p>首先要配置代理，让emby能正常刮削数据，在Docker运行的用户目录下新建<code>.docker/config.json</code>，写入以下内容</p> <div class="language- extra-class"><pre class="language-text"><code>{
 &quot;proxies&quot;:
 {
   &quot;default&quot;:
   {
     &quot;httpProxy&quot;: &quot;http://172.17.0.1:7890&quot;,
     &quot;httpsProxy&quot;: &quot;http://172.17.0.1:7890&quot;,
     &quot;noProxy&quot;: &quot;*.test.example.com,.example2.com,127.0.0.0/8&quot;
   }
 }
}
</code></pre></div><p>上面的ip地址视情况自己修改，然后拉取emby的镜像</p> <div class="language- extra-class"><pre class="language-text"><code>sudo docker pull emby/embyserver_arm64v8
</code></pre></div><p>启动容器</p> <div class="language- extra-class"><pre class="language-text"><code>docker run -d \
    --name embyserver \
    --net=host \
    --device /dev/vchiq:/dev/vchiq \
    --publish 8096:8096 \
    --publish 8920:8920 \
    --env UID=1000 \
    --env GID=1000 \
    --env GIDLIST=1000 \
    emby/embyserver_arm64v8
</code></pre></div><details><summary>参数解释，点击展开</summary> <ul><li><code>--name embyserver</code>：容器名称</li> <li><code>--net=host</code>：网络模式</li> <li><code>--device /dev/vchiq:/dev/vchiq</code>：MMAL/OMX on Raspberry Pi （我也不知道干嘛的(+_+)?）</li> <li><code>--publish 8096:8096</code>：http 端口</li> <li><code>--publish 8920:8920</code>：https 端口</li> <li><code>--env UID=1000</code>：用户UID，根据自己情况修改</li> <li><code>--env GID=1000</code>：用户GID，根据自己情况修改</li> <li><code>--env GIDLIST=1000</code>：填用户GID</li></ul></details> <p>启动后，浏览器输入<code>http://ip-server:8096</code>进入emby进行初始设置</p> <h2 id="_4-安装aria2"><a href="#_4-安装aria2" class="header-anchor">#</a> 4.安装Aria2</h2> <p>安装<a href="https://hub.docker.com/r/p3terx/aria2-pro" target="_blank" rel="noopener noreferrer">aria2<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>和<a href="https://hub.docker.com/r/p3terx/ariang" target="_blank" rel="noopener noreferrer">ariang<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，注意！这两个docker镜像都是第三方制作的</p> <h3 id="_4-1-aria2"><a href="#_4-1-aria2" class="header-anchor">#</a> 4.1 Aria2</h3> <p>安装</p> <div class="language- extra-class"><pre class="language-text"><code>sudo docker pull p3terx/aria2-pro
</code></pre></div><div class="language- extra-class"><pre class="language-text"><code>docker run -d \
    --name aria2-pro \
    --restart unless-stopped \
    --log-opt max-size=1m \
    -e PUID=$UID \
    -e PGID=$GID \
    -e RPC_SECRET=&lt;TOKEN&gt; \
    -e RPC_PORT=6800 \
    -e LISTEN_PORT=6888 \
    -e DISK_CACHE=&lt;SIZE&gt; \
    p3terx/aria2-pro
</code></pre></div><details><summary>部分参数解释，点击展开</summary> <ul><li><code>RPC_SECRET</code>：RPC 密钥设置，即 WebUI 连接时需要填写的密码</li> <li><code>RPC_PORT</code>：RPC 端口设置</li> <li><code>LISTEN_PORT</code>：BT 监听端口（TCP）、DHT 监听端口（UDP）设置，即 Aria2 配置中<code>listen-port</code>与<code>dht-listen-port</code>选项定义的端口。如果没有设置，配置文件中的默认值为<code>6888</code>。</li> <li><code>DISK_CACHE</code>：磁盘缓存设置，默认值<code>64M</code>。建议在有足够的内存空闲情况下设置为适当增加大小，以减少磁盘 I/O ，提升读写性能，延长硬盘寿命。比如<code>128M</code>、<code>256M</code>等。</li></ul> <blockquote><p>了解更多访问<a href="https://p3terx.com/archives/docker-aria2-pro.html" target="_blank" rel="noopener noreferrer">https://p3terx.com/archives/docker-aria2-pro.html<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></blockquote></details> <h3 id="_4-2-安装ariang"><a href="#_4-2-安装ariang" class="header-anchor">#</a> 4.2 安装AriaNG</h3> <p>安装</p> <div class="language- extra-class"><pre class="language-text"><code>sudo docker pull p3terx/ariang
</code></pre></div><div class="language- extra-class"><pre class="language-text"><code>docker run -d \
    --name ariang \
    --restart unless-stopped \
    --log-opt max-size=1m \
    -p 6880:6880 \
    p3terx/ariang
</code></pre></div><p>浏览器进入<code>http://ip-server:6880</code>，输入密码，连接到aria2
</p><div class="pageimg" style="text-align:center;"><img src="" alt="图片"></div><p></p></div></div> <!----> <div class="page-edit"><!----> <div class="tags"><a href="/tags/?tag=%E6%A0%91%E8%8E%93%E6%B4%BE" title="标签">#树莓派</a><a href="/tags/?tag=Linux" title="标签">#Linux</a></div> <div class="last-updated"><span class="prefix">上次编辑:</span> <span class="time">2021/09/13, 21:40:27</span></div></div> <div class="page-nav-wapper"><!----> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/pages/08260b/" class="prev">从零开始的树莓派4B</a></span> <span class="next"><a href="/pages/b22e3a/">配置树莓派连接WiFi网络</a>→
      </span></p></div></div></div> <div class="article-list"><div class="article-title"><a href="/archives/" class="iconfont icon-bi">最近更新</a></div> <div class="article-wrapper"><dl><dd>01</dd> <dt><a href="/pages/c242c9/"><div>
            ✨✨博客站点迁移提示✨✨
            <!----></div></a> <span class="date">04-24</span></dt></dl><dl><dd>02</dd> <dt><a href="/pages/d38aff/"><div>
            VSCode生成头部注释
            <!----></div></a> <span class="date">01-03</span></dt></dl><dl><dd>03</dd> <dt><a href="/pages/f002e9/"><div>
            VSCode配置文件配置项
            <!----></div></a> <span class="date">12-22</span></dt></dl> <dl><dd></dd> <dt><a href="/archives/" class="more">更多文章&gt;</a></dt></dl></div></div></main></div> <div class="footer"><div class="icons"><a href="https://github.com/BillSaul" title="GitHub" target="_blank" class="iconfont icon-github-fill-round"></a><a href="mailto:billsaul@github.email.cn" title="发邮件" target="_blank" class="iconfont icon-email"></a><a href="https://gitee.com/billsaul" title="Gitee" target="_blank" class="iconfont icon-gitee-fill-round"></a></div> 
  Theme by
  <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" title="本站主题">Vdoing</a> 
    | Copyright © 2020-2022
    <span>秋澪冬安 | Gitee BillSaul</span></div> <div class="buttons"><div title="返回顶部" class="button blur go-to-top iconfont icon-fanhuidingbu" style="display:none;"></div> <div title="去评论" class="button blur go-to-comment iconfont icon-pinglun" style="display:none;"></div> <div title="主题模式" class="button blur theme-mode-but iconfont icon-zhuti"><ul class="select-box" style="display:none;"><li class="iconfont icon-zidong">
          跟随系统
        </li><li class="iconfont icon-rijianmoshi">
          浅色模式
        </li><li class="iconfont icon-yejianmoshi">
          深色模式
        </li><li class="iconfont icon-yuedu">
          阅读模式
        </li></ul></div></div> <!----> <!----> <!----></div><div class="global-ui"></div></div>
    <script src="/assets/js/app.f1feaaa3.js" defer></script><script src="/assets/js/2.56bc1612.js" defer></script><script src="/assets/js/18.e4a559a0.js" defer></script>
  </body>
</html>
